package com.suxii.pojo;

import lombok.Data;

@Data
public class ChatMsg extends Msg{
    @Override
    public int getType() {
        return CHAT_MSG;
    }

    private String name; //发送人名称
    private int uid; //作为主键，唯一值
    private String content; //正文消息

    private int uuid; //目标id

    public ChatMsg(String name, int uid, String content) {
        this.name = name;
        this.uid = uid;
        this.content = content;
    }

    public ChatMsg(String name, int uid, String content, int uuid) {
        this.name = name;
        this.uid = uid;
        this.content = content;
        this.uuid = uuid;
    }
}
